package com.yugao.fintech.draper.scheduled.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.scheduled.dto.QuartzJobDTO;
import com.yugao.fintech.draper.scheduled.entity.QuartzJob;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface QuartzJobConvert {

	QuartzJobConvert INSTANCE = Mappers.getMapper(QuartzJobConvert.class);

	QuartzJob convert(QuartzJobDTO quartzJobDto);

	QuartzJobDTO convert(QuartzJob quartzJob);

	Page<QuartzJobDTO> convertPage(Page<QuartzJob> page);

}
